package com.bartender.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bartender.common.annotation.Excel;
import com.bartender.common.core.domain.BaseEntity;

/**
 * 订单管理对象 order_table
 * 
 * @author bartender
 * @date 2024-12-19
 */
public class OrderTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** DIY编号 */
    private Long diyId;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalPrice;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    /** 评价 */
    @Excel(name = "评价")
    private String evaluation;

    /** 取餐编号 */
    @Excel(name = "取餐编号")
    private String pickupNumber;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setDiyId(Long diyId) 
    {
        this.diyId = diyId;
    }

    public Long getDiyId() 
    {
        return diyId;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }
    public void setEvaluation(String evaluation) 
    {
        this.evaluation = evaluation;
    }

    public String getEvaluation() 
    {
        return evaluation;
    }
    public void setPickupNumber(String pickupNumber) 
    {
        this.pickupNumber = pickupNumber;
    }

    public String getPickupNumber() 
    {
        return pickupNumber;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("openid", getOpenid())
            .append("diyId", getDiyId())
            .append("orderDate", getOrderDate())
            .append("totalPrice", getTotalPrice())
            .append("orderStatus", getOrderStatus())
            .append("paymentStatus", getPaymentStatus())
            .append("evaluation", getEvaluation())
            .append("pickupNumber", getPickupNumber())
            .append("deptId", getDeptId())
            .toString();
    }
}
